package com.klei.dao;

import com.klei.pojo.User;

import java.util.List;

public interface IUserDao {

    List<User> getAllUser();

    List<User> getAllUserByPage(int page, int limit);

    int getUserCount();

    User getUserByTAndP(String tel, String password);

    User getUserByTel(String tel);

    User getUserByUid(int uid);

    int saveUser(User user);

    int updateUser(User user);

    int updateUserPass(int uid, String pass);

    int deleteUser(int uid);

}
